package com.idle.test.main;


import com.idle.android.R;
import com.idle.app.media.CustomCropActivity;
import com.idle.app.test.BasePhotoActivity;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ImageView;

public class MainActivity extends BasePhotoActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        //startActivity(new Intent(this, CustomCropActivity.class));
        showSelectPhotoDialog(null, false);
    }
    @Override
    public void onDealPhoto(Bitmap photo) { 
    	ImageView imageView = new ImageView(getApplicationContext());
    	imageView.setImageBitmap(photo);
    	setContentView(imageView);
    }
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }

    
}
